<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网页计算机</title>
</head>
<body>
<p>整数1 <input type="text" id="z1"></p>
<p>整数2 <input type="text" id="z2"></p>
<p>
    <button onclick="up(1)">相加</button>
    <button onclick="up(2)">相减</button>
    <button onclick="up(3)">相乘</button>
    <button onclick="up(4)">相除</button>
</p>
<p>结果 <input type="text" id="z3"></p>
<script src="js/script.js"></script>
</body>
</html>